package com.gc;

import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;

public class IO {
	
	
	public static void main(String[] args) throws Exception {
		// io流测试
		BufferedReader bf = new BufferedReader(new FileReader("C:\\Users\\Admin\\Desktop\\linux操作mysql数据库命令.txt"));
		String str = "";
		int count = 0;
		while ((str = bf.readLine()) != null) {
			count++;
			System.out.println("第" + count + "行，内容为：" + str);
		}
		
	}
	
	
}
